﻿using System;
using System.Collections.Generic;


namespace DevMaker.CM.Mailing.App_code {
    public class Boleta {
        public long TransC_lgnNumber { get; set; }
        public long TransC_intSequence { get; set; }
        public DateTime TransC_dtmDateTime { get; set; }
        public decimal TransC_curValue { get; set; }
        public string TickNum_strStyleCode { get; set; }
        public string vwBookingH_strName { get; set; }
        public string vwBookingH_strBookingId { get; set; }
        public string vwPGroup_strCode { get; set; }
        public string vwPrice_strCode { get; set; }
        public string vwFilm { get; set; }
        public string vwBookingH_strEmail { get; set; }
        public String PathFile {
            get { return Util.PathFile + "\\" + TransC_lgnNumber + ".pdf"; }
        }

        public List<BoletaDetalle> BoletaDetalles { set; get; }

        public string TransC_strReceiptNumber { get; set; }

        public String vwPickupWorkstationName { get; set; }

        public String TransC_intBKPickupUser { get; set; }

        public String vwBookingH_intPickupUser { get; set; }

        public long vwBookingH_intTicketsPrt { get; set; }

        public DateTime TransC_dtmBKDateCollected { get; set; }

        public string TransC_strBKPickupWorkstn { get; set; }

        public Cine Cine { get; set; }

        public string Operador { get; set; }

        public override string ToString() {
            return TransC_lgnNumber.ToString();
        }
    }

    public class BoletaDetalle {
        public Int64 Cantidad { set; get; }
        public String NombreItem { set; get; }
        public Decimal PrecioUnitario { set; get; }
        public Decimal ValorLinea { set; get; }
    }
}
